<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f"%>
<%@ taglib uri="/mytag" prefix="yjd"%>
<div class="wrap" >
    <button type="button" class="btn length_2" onclick="window.location.href='${requestScope.FPWEB.rootPath }/funds/channel/add${requestScope.FPWEB.urlStuff}'">新增资金渠道</button>
    <div class="table_list">
        <table width="100%">
            <thead>
            <tr>
                <td>渠道ID</td>
                <td>渠道CODE</td>
                <td>渠道名称</td>
                <td>所属公司</td>
                <td>联系电话</td>
                <td>贷款利率</td>
                <td>利润分成</td>
                <td>风控配置</td>
                <td>是否启用</td>
                <td>创建时间</td>
                <td>最后更新时间</td>
                <td>操作</td>
            </tr>
            </thead>
            <tbody id="J_word_list">
                <c:forEach items="${pager.pagerModel.dataList }" var="item" varStatus="i">
                    <tr>
                        <td>${item.fund_channel}</td>
                        <td>${item.channel_code}</td>
                        <td>${item.name}</td>
                        <td>${item.company}</td>
                        <td>${item.tel_number}</td>
                        <td>${item.loan_rate}</td>
                        <td>${item.profit_allocation}</td>
                        <td>${item.risk_management_config}</td>
                        <td><c:choose>
                            <c:when test="${item.available==0}">否</c:when>
                            <c:when test="${item.available==1}">是</c:when>
                        </c:choose></td>
                        <td>${item.strMap.create_time}</td>
                        <td>${item.strMap.update_time}</td>
                        <td>
                            <a class="btn" href="${requestScope.FPWEB.rootPath }/funds/channel/detail${requestScope.FPWEB.urlStuff}?id=${item.fund_channel}">查看</a>
                            <a class="btn btn_green" href="${requestScope.FPWEB.rootPath }/funds/channel/edit${requestScope.FPWEB.urlStuff}?id=${item.fund_channel}">编辑</a>
                            <a class="btn J_ajax_del btn_orange" href="${requestScope.FPWEB.rootPath }/funds/channel/delete${requestScope.FPWEB.urlStuff}?id=${item.fund_channel}">删除</a>
                        </td>
                    </tr>
                </c:forEach>
            </tbody>
        </table>
    </div>
    <!-- 分页 -->
    <%@ include file="../../public/pager/pager.pagination.jsp" %>
</div>
